package zzu.mxd.answer.service;

import zzu.mxd.answer.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import zzu.mxd.answer.vo.RecordExtend;

import java.util.List;

/**
 * <p>
 * 学生表 服务类
 * </p>
 *
 * @author mxd
 * @since 2018-11-08
 */
public interface IStudentService extends IService<Student> {

    void deleteFalsely(String id);

    /**
     *
     * @param id
     * @param password
     * @param verification
     * @param verifyKey
     * @return  int
     * 0 登陆成功
     * 1 验证码错误
     * 2 用户名不存在
     * 3 用户密码错误
     * 4 用户被冻结
     * 5 异常，登陆失败
     */
    int login(String id, String password, String verification,String verifyKey);

    boolean updatePassword(String id, String oldPassword, String newPassword, String renewPassword);

    Student selectByIdCard(String idCard);

    List<RecordExtend> getUserExercise(String id, Integer isRight);
}
